import React from 'react';
import { Grid } from 'antd-mobile';
import {withRouter} from "react-router-dom"
import "./New.less";



function New(props) {
    let { getnewList,getgroupon,getcountdown,reqgetseckill } = props;
    return (
        <div className="getnew">
            <div>
                <h3>新人专享---老人不享</h3>
                <Grid data={getnewList}
                    columnNum={4}
                    isCarousel={true}
                    carouselMaxRow={1}
                    onClick={() => props.history.replace("/detail")}
                    renderItem={getnewList => (
                        <div style={{ padding: '0.125rem' }}>
                            <img src={getnewList.img} style={{ width: '0.6rem', height: '0.6rem' }} alt="" />
                            <div style={{ color: '#888', fontSize: '0.14rem', marginTop: '0.12rem' }}>
                                <span>{getnewList.goodsname}</span>
                            </div>
                        </div>
                    )}
                />
            </div>
        </div>
    )
}
export default withRouter(New)
